package com.yuebao.result;

import com.yuebao.enumeration.BaseCodeEnum;

public class EntityResponse<T> extends AbstractResponse{
    private T data;
    
    public EntityResponse(BaseCodeEnum code,String message,T data){
        super(code,message);
        this.data= data;
    }
    public EntityResponse() {
    }
    
    public T getData() {
        return data;
    }
    
    public void setData(T data) {
        this.data = data;
    }
    
    @Override
    public String toString() {
        return "EntityResponse{" +
                "data=" + data +
                '}';
    }
}
